package com.ss.android.lockscreen.activity.lock;

import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.support.annotation.CallSuper;
import android.support.v4.content.ContextCompat;
import android.support.v4.view.ViewPager.PageTransformer;
import android.telephony.PhoneStateListener;
import android.telephony.TelephonyManager;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.ImageView;
import android.widget.TextView;

import com.ss.android.article.base.app.AppData;
import com.ss.android.article.browser.R;
import com.ss.android.article.browser.lockscreen.ui.SettingLockScreenActivity;
import com.ss.android.lockscreen.activity.lock.b.d;
import com.ss.android.lockscreen.activity.lock.b.g;
import com.ss.android.lockscreen.activity.lock.b.h;
import com.ss.android.lockscreen.activity.lock.b.i;
import com.ss.android.lockscreen.http.data.ScreenCell;
import com.ss.android.lockscreen.http.data.ScreenCell.Type;
import com.ss.android.lockscreen.http.data.b;
import com.ss.android.lockscreen.views.SwipeView;
import com.ss.android.newmedia.activity.browser.BrowserActivity;

import org.json.JSONException;
import org.json.JSONObject;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.TimeZone;

import inline.JSONDemo;
import inline.PackageUtils;

public class LockScreenActivity extends Activity implements View.OnClickListener, com.ss.android.lockscreen.activity.lock.n.a, com.ss.android.lockscreen.activity.lock.w.a {
    public final class LockScreenActivity$a implements PageTransformer {
        private final LockScreenActivity a;

        public LockScreenActivity$a(LockScreenActivity arg1) {
            this.a = arg1;

        }

        public final void transformPage(View page, float position) {
            View v0_1;
            float v2;
            float v0;
            float v6 = 48f;
            float v5 = -1f;
            float v4 = 1f;
            float v1 = 0.8f;
            if (position > v5 || position < -2f || !LockScreenActivity.v(this.a)) {
                page.setTranslationX(0f);
            } else {
                page.setTranslationX(-(position + v4) * (((float) page.getWidth())));
            }

            switch (android.support.design.a.B.e()) {
                case 2: {
                    v0 = position <= 0f ? (((float) page.getWidth())) - com.ss.android.lockscreen.utils.c.a(page.getContext(), 100f) : com.ss.android.lockscreen.utils.c.a(page.getContext(), 100f);
                    page.setPivotX(v0);
                    break;
                }
                default: {
                    v0 = position <= 0f ? (((float) page.getWidth())) - com.ss.android.lockscreen.utils.c.a(page.getContext(), v6) : com.ss.android.lockscreen.utils.c.a(page.getContext(), v6);
                    page.setPivotX(v0);
                    break;
                }
            }

            page.setPivotY(((float) (page.getHeight() / 2)));
            if (position <= v5 || position >= v4) {
                v0 = v1;
                v2 = v1;
            } else {
                v0 = v4 - Math.abs(position) * 0.2f;
                v2 = v1 * Math.abs(position);
            }

            page.setScaleX(v0);
            page.setScaleY(v0);
            Object v1_1 = page.getTag();
            if ((v1_1 instanceof com.ss.android.lockscreen.activity.lock.b.aa)) {
                v0_1 = ((com.ss.android.lockscreen.activity.lock.b.aa) v1_1).a;
                if (v0_1 != null) {
                    v0_1.setAlpha(v2);
                }
            }

            if ((v1_1 instanceof g)) {
                v0_1 = ((g) v1_1).a;
                if (v0_1 != null) {
                    v0_1.setAlpha(v2);
                }
            }

            if ((v1_1 instanceof d)) {
                v0_1 = ((d) v1_1).a;
                if (v0_1 != null) {
                    v0_1.setAlpha(v2);
                }
            }

            if ((v1_1 instanceof h)) {
                v0_1 = ((h) v1_1).a;
                if (v0_1 != null) {
                    v0_1.setAlpha(v2);
                }
            }

            if ((v1_1 instanceof i)) {
                v0_1 = ((i) v1_1).a;
                if (v0_1 != null) {
                    v0_1.setAlpha(v2);
                }
            }
        }
    }

    private ScreenCell A;
    private PhoneStateListener B;
    private TelephonyManager C;
    private boolean D;
    private SimpleDateFormat E;
    private SimpleDateFormat F;
    private SimpleDateFormat G;
    private final BroadcastReceiver H;
    private BroadcastReceiver I;
    public static boolean a;
    public static boolean b;
    private View c;
    private TextView d;
    private TextView e;
    private TextView f;
    private TextView g;
    private ImageView h;
    private View i;
    private View j;
    private ViewGroup k;
    private w l;
    private Handler m;
    private SwipeView n;
    private com.ss.android.lockscreen.views.c o;
    private n p;
    private int q;
    private int r;
    private int s;
    private long t;
    private boolean u;
    private b v;
    private Calendar w;
    private long x;
    private boolean y;
    private boolean z;

    public LockScreenActivity() {
        this.m = new Handler(Looper.getMainLooper());
        this.y = false;
        this.z = false;
        this.A = null;
        this.B = new com.ss.android.lockscreen.activity.lock.aa(this);
        this.D = false;
        this.H = new m(this);
        this.I = new e(this);
    }

    static ScreenCell a(LockScreenActivity arg0, ScreenCell arg1) {
        arg0.A = arg1;
        return arg1;
    }

    public static com.ss.android.lockscreen.views.c a(LockScreenActivity arg1) {
        return arg1.o;
    }

    static List a(List arg8) {
        List v0;
        int v2 = 0;
        ArrayList v3 = new ArrayList();
        if (arg8 == null || arg8.size() <= 0) {
            v0 = v3;
        } else {
            long v4 = android.support.design.a.B.c();
            int v1;
            for (v1 = 0; v1 < arg8.size(); ++v1) {
                if (((ScreenCell) arg8.get(v1)).f == v4) {
                    break;
                }
            }

            if (v1 == arg8.size()) {
                v1 = arg8.size() - 1;
            }

            if (v1 >= 4) {
                v2 = v1 - 4;
            }

            while (v2 <= v1) {
                ((List) v3).add(arg8.get(v2));
                ++v2;
            }

            if (android.support.design.a.B.d()) {
                v0 = v3;
            } else {
                v0 = LockScreenActivity.c(((List) v3));
            }
        }

        return v0;
    }

    static void a(LockScreenActivity arg3, int arg4) {
        if (arg4 >= arg3.l.getCount() - 5 && !arg3.u && arg3.l != null) {
            if (arg3.v != null && (arg3.v.a())) {
                arg3.u = true;
                arg3.p.a(arg3.getApplicationContext(), arg3.v.a);
                return;
            }

            arg3.u = true;
            arg3.p.a(arg3.getApplicationContext());
        }
    }

    static void a(LockScreenActivity arg0, String arg1) {
        arg0.a(arg1);
    }

    private void a(String arg2) {
        this.w = arg2 != null ? Calendar.getInstance(TimeZone.getTimeZone(arg2)) : Calendar.getInstance();
    }

    public final void a() {
        this.u = false;
    }

    public final void a(View arg6, ScreenCell arg7) {
        if (arg7 != null && this.l != null) {
            this.z = true;
            this.j.setAlpha(1f);
            this.j.animate().alpha(0f).setDuration(1000).setListener(new k(this));
            arg6.animate().alpha(0f).scaleX(0f).scaleY(0f).setDuration(200).setStartDelay(500).setListener(new j(this, arg7)).start();
        }
    }

    public final void a(ScreenCell arg10) {
        JSONObject v2;
        String v0_2;
        if (arg10 == null) {
            return;
        }

        List v3 = JSONDemo.a(arg10.k);
        String v1 = "";
        com.ss.android.lockscreen.e.a v4 = com.ss.android.lockscreen.bb.a().b;
        boolean v0 = v4 != null ? AppData.getInstance().getAbSettings().isRelatedNewsJumpToTT() : false;
        if (v0) {
            Iterator v5 = v3.iterator();
            do {
                if (v5.hasNext()) {
                    Object v0_1 = v5.next();
                    if (!((String) v0_1).startsWith("snssdk1212")) {
                        continue;
                    }

                    v0_2 = ((String) v0_1).replaceFirst("snssdk1212", "snssdk143");
                    if (!PackageUtils.a(((Context) this), new Intent("android.intent.action.VIEW", Uri.parse(v0_2)))) {
                        v0_2 = v0_2.replaceFirst("snssdk143", "snssdk35");
                        if (!PackageUtils.a(((Context) this), new Intent("android.intent.action.VIEW", Uri.parse(v0_2)))) {
                            continue;
                        }
                        break;
                    }
                } else {
                    v0_2 = v1;
                }
                break;
            }
            while (true);
        } else {
            v0_2 = v1;
        }

        if (!TextUtils.isEmpty(((CharSequence) v0_2))) {
            PackageUtils.b(((Context) this), v0_2);
            v1 = "lock_screen";
            if (com.ss.android.lockscreen.bb.a().f == null) {
            } else {
                try {
                    v2 = new JSONObject();
                    v2.put("scheme", v0_2);
                    v2.put("position", v1);
                    android.support.design.a.onEvent("jump_to_tt", v2);
                } catch (Exception v0_3) {
                }
            }
        } else if (v4 != null && (com.ss.android.lockscreen.e.a.a())) {
            v1 = "lock_screen";
            if (com.ss.android.lockscreen.bb.a().f != null) {
                try {
                    v2 = new JSONObject();
                    v2.put("scheme", v0_2);
                    v2.put("position", v1);
                    android.support.design.a.onEvent("try_install_tt", v2);
                } catch (Exception v0_3) {
                }
            }
        } else {
            Iterator v1_1 = v3.iterator();
            int v0_4;
            do {
                if (v1_1.hasNext()) {
                    if (!PackageUtils.b(((Context) this), (String) v1_1.next())) {
                        continue;
                    }
                    v0_4 = 1;
                } else {
                    v0_4 = 0;
                }
                break;
            }
            while (true);
            if (v0_4 == 0 && !TextUtils.isEmpty(arg10.j) && v4 != null) {
                v0_2 = arg10.j;
                Intent v1_2 = new Intent(((Context) this), BrowserActivity.class);
                v1_2.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                v1_2.putExtra("swipe_mode", 2);
                v1_2.setData(Uri.parse(v0_2));
                ((Context) this).startActivity(v1_2);
            }
        }

        JSONObject v0_5 = new JSONObject();
        try {
            v0_5.put("itemId", arg10.g);
        } catch (Exception v0_3) {
            v0_3.printStackTrace();
        }

        this.d();
        if (this.k != null) {
            this.k.setAlpha(0f);
        }
    }

    public final void a(com.ss.android.lockscreen.http.data.a arg4) {
        this.u = false;
        if (this.l != null && arg4 != null && arg4.b != null && arg4.b.size() > 0) {
            this.l.a(arg4.b, arg4.a);
        }
    }

    public final void a(b arg5) {
        this.u = false;
        if (arg5 == null || !arg5.a()) {
            this.finish();
        } else {
            this.v = arg5;
            com.ss.android.lockscreen.c.a.a v0 = android.support.design.a.B;
            if (arg5 != null) {
                com.ss.android.lockscreen.d.b.a v1 = v0.a;
                String v3 = arg5.a;
                SharedPreferences.Editor v1_1 = v1.a.edit();
                v1_1.putString("lock_open_api_token", v3);
                v1_1.apply();
                v0.a.a("lock_open_api_token_expires", arg5.b);
            }

            if (this.l.d() != 0) {
                return;
            }

            this.u = true;
            this.p.a(this.getApplicationContext(), this.v.a);
        }
    }

    public static int b(LockScreenActivity arg1) {
        return arg1.r;
    }

    static List b(List arg10) {
        List v0_1;
        ArrayList v2 = new ArrayList();
        if (arg10 == null || arg10.size() <= 0) {
            label_42:
            v0_1 = v2;
        } else {
            long v4 = android.support.design.a.B.c();
            int v1;
            for (v1 = 0; v1 < arg10.size(); ++v1) {
                if (((ScreenCell) arg10.get(v1)).f == v4) {
                    break;
                }
            }

            if (v1 == arg10.size()) {
                v1 = arg10.size() - 1;
            }

            if (android.support.design.a.B.a.b("lock_feed_last_refresh_time", 0) > System.currentTimeMillis() - 86400000) {
                int v0;
                for (v0 = v1 + 1; v0 < arg10.size(); ++v0) {
                    ((List) v2).add(arg10.get(v0));
                }
            }

            if (android.support.design.a.B.d()) {
                v0_1 = v2;
            } else {
                v0_1 = LockScreenActivity.c(((List) v2));
            }
        }

        return v0_1;
    }

    public final void b() {
        this.u = false;
    }

    private static List c(List arg4) {
        ArrayList v2 = new ArrayList();
        int v1;
        for (v1 = 0; v1 < arg4.size(); ++v1) {
            if (((ScreenCell) arg4.get(v1)).b != Type.LittleVideo) {
                ((List) v2).add(arg4.get(v1));
            }
        }

        return ((List) v2);
    }

    public static SwipeView c(LockScreenActivity arg1) {
        return arg1.n;
    }

    private void c() {
        if (this.k != null) {
            this.k.setSystemUiVisibility(2);
        }
    }

    public static View d(LockScreenActivity arg1) {
        return arg1.i;
    }

    private void d() {
        if (!this.isFinishing()) {
            this.finish();
        }
    }

    public static View e(LockScreenActivity arg1) {
        return arg1.j;
    }

    private void e() {
        this.w.setTimeInMillis(System.currentTimeMillis());
        if (this.d != null) {
            this.d.setText(this.E.format(this.w.getTime()));
        }

        if (this.e != null) {
            this.e.setText(this.F.format(this.w.getTime()));
        }

        if (this.f != null) {
            this.f.setText(this.G.format(this.w.getTime()));
        }
    }

    public static View f(LockScreenActivity arg1) {
        return arg1.c;
    }

    private void f() {
        this.o.getViewTreeObserver().addOnPreDrawListener(new com.ss.android.lockscreen.activity.lock.bb(this));
    }

    public static int g(LockScreenActivity arg1) {
        return arg1.q;
    }

    public static void h(LockScreenActivity arg5) {
        if (arg5.n != null) {
            arg5.n.animate().setDuration(arg5.t).translationY(0f).alpha(1f).start();
        }

        if (arg5.i != null) {
            arg5.i.animate().setDuration(arg5.t).translationY(0f).start();
        }

        if (arg5.j != null) {
            arg5.j.animate().setDuration(arg5.t).translationY(0f).start();
        }

        if (arg5.o != null) {
            arg5.o.animate().setDuration(arg5.t).translationY(0f).start();
        }

        if (arg5.c != null) {
            arg5.c.animate().setDuration(arg5.t).translationY(0f).setListener(new com.ss.android.lockscreen.activity.lock.c(arg5)).start();
        }
    }

    public static void i(LockScreenActivity arg4) {
        arg4.k.animate().setDuration(arg4.t).alpha(0f).setListener(new com.ss.android.lockscreen.activity.lock.d(arg4)).start();
    }

    public static int j(LockScreenActivity arg1) {
        return arg1.s;
    }

    static boolean k(LockScreenActivity arg1) {
        arg1.z = false;
        return false;
    }

    static ScreenCell l(LockScreenActivity arg1) {
        return arg1.A;
    }

    static w m(LockScreenActivity arg1) {
        return arg1.l;
    }

    static void n(LockScreenActivity arg0) {
        arg0.f();
    }

    static boolean o(LockScreenActivity arg1) {
        return arg1.D;
    }

    public void onBackPressed() {
    }

    public void onClick(View arg7) {
        if (arg7.getId() == R.id.y8) {
            if (com.ss.android.lockscreen.bb.a().b != null) {
                Intent v0 = new Intent(((Context) this), SettingLockScreenActivity.class);
                v0.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                v0.addFlags(65536);
                ((Activity) this).startActivity(v0);
            }

            ScreenCell v0_1 = this.l.b(this.o.getCurrentItem());
            if (v0_1 != null && com.ss.android.lockscreen.bb.a().f != null) {
                JSONObject v1 = new JSONObject();
                try {
                    v1.put("action", "config");
                    v1.put("group_id", String.valueOf(v0_1.f));
                    v1.put("item_id", String.valueOf(v0_1.g));
                    if (v0_1.b == Type.LittleVideo) {
                        v1.put("group_type", "little_video");
                    } else {
                        String v2 = "group_type";
                        String v0_3 = v0_1.i ? "video" : "article";
                        v1.put(v2, v0_3);
                    }
                } catch (JSONException v0_2) {
                    v0_2.printStackTrace();
                }
                android.support.design.a.onEvent("lockscreen_picture", v1);
            }

            this.d();
            if (this.k == null) {
                return;
            }

            this.k.setAlpha(0f);
        }
    }

    @CallSuper
    protected void onCreate(Bundle arg8) {
        int v2 = 19;
        Window v0 = this.getWindow();
        v0.addFlags(4718592);
        v0.addFlags(16777216);
        v0.setFlags(512, 512);
        if (Build.VERSION.SDK_INT < v2) {
            this.getWindow().getDecorView().setSystemUiVisibility(8);
        } else if (Build.VERSION.SDK_INT >= v2) {
            this.getWindow().getDecorView().setSystemUiVisibility(4866);
            if (Build.VERSION.SDK_INT >= 21) {
                v0.clearFlags(67108864);
                v0.addFlags(-2147483648);
                v0.setStatusBarColor(ContextCompat.getColor(this.getApplicationContext(), 17170445));
            }
        }

        super.onCreate(arg8);
        try {
            switch (android.support.design.a.B.e()) {
                case 2: {
                    int v0_2 = R.layout.f4;
                    try {
                        this.setContentView(v0_2);
                        break;
                    } catch (Exception v0_1) {
                        label_192:
                        if (!this.isFinishing()) {
                            this.finish();
                        }
                        return;
                    }
                }
                default: {
                    this.setContentView(com.ss.android.article.browser.R.layout.f3);
                    break;
                }
            }
        } catch (Exception v0_1) {
            if (!this.isFinishing()) {
                this.finish();
            }
            return;
        }

        if (!this.y) {
            IntentFilter v0_3 = new IntentFilter();
            v0_3.addAction("finish_other_tt_lockscreen_activity");
            this.registerReceiver(this.I, v0_3);
            this.y = true;
        }

        this.q = this.getResources().getDisplayMetrics().heightPixels / 2;
        this.r = 500;
        this.s = this.getResources().getDimensionPixelOffset(R.dimen.g6);
        this.t = 300;
        this.p = new n(this);
        this.v = new b(android.support.design.a.B.a.a.getString("lock_open_api_token", ""), android.support.design.a.B.a.b("lock_open_api_token_expires", 0));
        LockScreenActivity.a = true;
        if (!this.v.a()) {
            this.u = true;
            this.p.a(this.getApplicationContext());
        }

        this.l = new w(((Context) this));
        this.l.c = ((com.ss.android.lockscreen.activity.lock.w.a) this);
        this.E = new SimpleDateFormat("HH:mm", Locale.getDefault());
        this.F = new SimpleDateFormat("M月d日", Locale.getDefault());
        this.G = new SimpleDateFormat("EEEE", Locale.getDefault());
        this.a((String) null);
        this.k = this.findViewById(com.ss.android.article.browser.R.id.g8);
        this.n = this.findViewById(com.ss.android.article.browser.R.id.y6);
        this.o = this.findViewById(com.ss.android.article.browser.R.id.y9);
        this.c = this.findViewById(com.ss.android.article.browser.R.id.yc);
        this.d = this.findViewById(com.ss.android.article.browser.R.id.yd);
        this.e = this.findViewById(com.ss.android.article.browser.R.id.ye);
        this.f = this.findViewById(com.ss.android.article.browser.R.id.yf);
        this.j = this.findViewById(com.ss.android.article.browser.R.id.y_);
        this.i = this.findViewById(com.ss.android.article.browser.R.id.ya);
        this.g = this.findViewById(com.ss.android.article.browser.R.id.y7);
        this.g.getBackground().setAlpha(100);
        this.h = this.findViewById(com.ss.android.article.browser.R.id.y8);
        this.o.setOffscreenPageLimit(3);
        this.o.setAdapter(this.l);
        this.o.setPageTransformer(false,new LockScreenActivity$a(this));
        this.l.a = new com.ss.android.lockscreen.activity.lock.f(this);
        this.h.setOnClickListener(((View.OnClickListener) this));
        this.n.setSwipeViewVerticalListener(new com.ss.android.lockscreen.views.e(this));
        this.o.addOnPageChangeListener(new com.ss.android.lockscreen.activity.lock.h(this));
        if (ContextCompat.checkSelfPermission(((Context) this), "android.permission.READ_PHONE_STATE") == 0) {
            this.C = (TelephonyManager) this.getSystemService(TELEPHONY_SERVICE);
            if (this.C != null) {
                this.C.listen(this.B, 32);
            }
        }

        com.ss.android.lockscreen.d.a.c.a().a(((Context) this), new com.ss.android.lockscreen.activity.lock.a.a(), new com.ss.android.lockscreen.activity.lock.i(this));
    }

    @CallSuper
    protected void onDestroy() {
        com.ss.android.lockscreen.activity.lock.w.a v3 = null;
        super.onDestroy();
        if (this.l != null) {
            this.l.c = v3;
        }

        if (this.y) {
            try {
                this.unregisterReceiver(this.I);
                this.y = false;
            } catch (Exception v0) {
            }
        }

        if (this.B != null && this.C != null) {
            if (ContextCompat.checkSelfPermission(((Context) this), "android.permission.READ_PHONE_STATE") == 0) {
                this.C.listen(this.B, 0);
            }

            this.B = ((PhoneStateListener) v3);
            this.C = ((TelephonyManager) v3);
        }

        LockScreenActivity.a = false;
    }

    public boolean onKeyDown(int arg2, KeyEvent arg3) {
        return super.onKeyDown(arg2, arg3);
    }

    @CallSuper
    protected void onNewIntent(Intent arg4) {
        super.onNewIntent(arg4);
        if (this.o != null && this.l != null && this.l.d() > 1) {
            this.D = true;
            this.o.setCurrentItem(this.o.getCurrentItem() + 1, false);
            ScreenCell.a = this.l.b(this.o.getCurrentItem());
        }
    }

    @CallSuper
    protected void onPause() {
        long v4 = 0;
        super.onPause();
        try {
            this.unregisterReceiver(this.H);
        } catch (Exception v0) {
            v0.printStackTrace();
        }

        this.c();
        long v0_1 = (System.currentTimeMillis() - this.x) / 1000;
        if (this.x > v4 && v0_1 > v4 && com.ss.android.lockscreen.bb.a().f != null) {
            JSONObject v2 = new JSONObject();
            try {
                v2.put("duration", String.valueOf(v0_1));
            } catch (JSONException v0_2) {
                v0_2.printStackTrace();
            }

            android.support.design.a.onEvent("lockscreen_duration", v2);
        }
    }

    @CallSuper
    protected void onResume() {
        super.onResume();
        this.c();
        IntentFilter v0 = new IntentFilter();
        v0.addAction("android.intent.action.TIME_TICK");
        v0.addAction("android.intent.action.TIME_SET");
        v0.addAction("android.intent.action.TIMEZONE_CHANGED");
        this.registerReceiver(this.H, v0, null, this.m);
        this.e();
        this.f();
        this.x = System.currentTimeMillis();
        if (this.D) {
            this.D = false;
        }

        boolean v0_1 = android.support.design.a.y(this.getApplicationContext());
        int v1 = android.support.design.a.B.a.a("lock_close_setting_tip_show_max_times");
        int v2 = android.support.design.a.B.a.a("lock_close_setting_tip_show_times");
        if ((v0_1) && v2 < v1) {
            this.g.setVisibility(View.VISIBLE);
            this.g.setAlpha(1f);
            this.g.animate().alpha(0f).setDuration(1000).setStartDelay(5000).setListener(new l(this));
            SharedPreferences.Editor v0_2 = android.support.design.a.B.a.a.edit();
            v0_2.putInt("lock_close_setting_tip_show_times", v2 + 1);
            v0_2.apply();
        }

        try {
            Intent v0_4 = new Intent();
            v0_4.setAction("finish_other_tt_lockscreen_activity");
            v0_4.putExtra("show_package_name", this.getPackageName());
            this.sendBroadcast(v0_4);
        } catch (Exception v0_3) {
        }
    }

    protected void onStart() {
        super.onStart();
        LockScreenActivity.b = true;
    }

    protected void onStop() {
        super.onStop();
        LockScreenActivity.b = false;
    }

    static boolean p(LockScreenActivity arg1) {
        return arg1.u;
    }

    static b q(LockScreenActivity arg1) {
        return arg1.v;
    }

    static boolean r(LockScreenActivity arg1) {
        arg1.u = true;
        return true;
    }

    static n s(LockScreenActivity arg1) {
        return arg1.p;
    }

    static TextView t(LockScreenActivity arg1) {
        return arg1.g;
    }

    static void u(LockScreenActivity arg0) {
        arg0.e();
    }

    static boolean v(LockScreenActivity arg1) {
        return arg1.z;
    }

    static void w(LockScreenActivity arg0) {
        arg0.d();
    }
}

